package com.jzit.network.utils

import android.util.Log
import com.jzit.network.BuildConfig

/*
    ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
       Author   :  zhouxc
       Date     :  2022/10/26
       Time     :  14:40
    ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 */
class LogUtils {
    val isPrintLog = BuildConfig.DEBUG

    companion object {
        fun logI(TAG: String, content: String) {
            if (LogUtils().isPrintLog)
                Log.i(TAG, content)
        }
        fun logD(TAG: String, content: String) {
            if (LogUtils().isPrintLog)
                Log.d(TAG, content)
        }
        fun logE(TAG: String, content: String) {
            if (LogUtils().isPrintLog)
                Log.e(TAG, content)
        }
    }
}